const Router = require('koa-router')
const cartRouter = new Router({ prefix: '/cart' })
const {
  getCartData,
  updateCartCount,
  deleteCart,
  addCart
} = require('../controller/cart.controller')
const {
  verifyAuth
} = require('../middleware/auth.middleware')
cartRouter.post('/all_data', verifyAuth, getCartData)
cartRouter.post('/update_count', verifyAuth, updateCartCount)
cartRouter.post('/delete_goods', verifyAuth, deleteCart)
cartRouter.post('/add_goods', verifyAuth, addCart)
module.exports = cartRouter